﻿<Window x:Class="WpfLogo.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Turtle Graphics" Height="646" Width="972">
    <Canvas>
        <Grid Height="580" Name="grid1" Width="402" HorizontalAlignment="Left" Canvas.Top="0">
            <Button Height="23" Margin="65.561,0,0,5.555" Name="button1" VerticalAlignment="Bottom" Click="button1_Click" HorizontalAlignment="Left" Width="75.548">Run Pgm</Button>
            <Button Height="23" HorizontalAlignment="Right" Margin="0,0,64.438,5.555" Name="button2" VerticalAlignment="Bottom" Width="75" Click="button2_Click">Clear Screen</Button>
            <Button Height="23" Margin="166,0,161,6" Name="button3" VerticalAlignment="Bottom" Click="button3_Click">Clear Pgm</Button>
            <TabControl Margin="11.11,12,6,39.996" Name="tabControl1">
                
                <TabItem Header="Program" Name="Progam">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="75.548*" />
                            <ColumnDefinition Width="211.755*" />
                        </Grid.ColumnDefinitions>
                        <TextBox Name="logoProgramText" Canvas.Left="29.536" Canvas.Top="-22" Margin="6,18.887,6,128.75" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" AcceptsReturn="True" AcceptsTab="True" Grid.ColumnSpan="2" HorizontalScrollBarVisibility="Auto">Logo Program</TextBox>
                        <TextBox Height="41.25" Margin="6,0,6,66.25" Name="errorMessage" VerticalAlignment="Bottom" IsReadOnly="True" Foreground="Red" Grid.ColumnSpan="2" BorderThickness="1" TextWrapping="WrapWithOverflow" />
                        <TextBox Height="23" Margin="6,0,67.5,21.25" Name="immediateMode" VerticalAlignment="Bottom" Grid.ColumnSpan="2" TextChanged="immediateMode_TextChanged" AcceptsReturn="True" />
                        <Button Grid.Column="1" Height="22.864" HorizontalAlignment="Right" Margin="0,0,6,21.838" Name="button4" VerticalAlignment="Bottom" Width="55.731" Click="button4_Click">Run</Button>
                        <Label Height="28" HorizontalAlignment="Left" Margin="6,0,0,40" Name="label1" VerticalAlignment="Bottom" Width="120" Grid.ColumnSpan="2">Immediate Mode:</Label>
                        <Label Height="28" Margin="6,0,0,105" Name="label2" VerticalAlignment="Bottom" Grid.ColumnSpan="2" HorizontalAlignment="Left" Width="120.06">Error Messages:</Label>
                    </Grid>
                </TabItem>
                <TabItem Header="Grammar" Name="tabItem3">
                    <Grid>
                        <Label Height="28" Margin="0,6,150,0" Name="grammarTitle" VerticalAlignment="Top" >Turtle Graphics Grammar Overview</Label>
                        <Label Margin="0,26.25,6,6" Name="grammarSummary" Grid.Row="1" FontSize="8">
                        </Label>
                    </Grid>
                </TabItem>

                <TabItem Header="Trace" Name="tabItem1">
                    <Grid>
                        <TextBox Margin="6,6,7.777,6" Name="textBox3" IsReadOnly="True" Background="#FFF5EFEF" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
                    </Grid>
                </TabItem>
                <TabItem Header="XAML" Name="tabItem2">
                    <TabItem.Background>
                        <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                            <GradientStop Color="#FFF3F3F3" Offset="0" />
                            <GradientStop Color="#FFEBEBEB" Offset="0.5" />
                            <GradientStop Color="#FFDDDDDD" Offset="0.5" />
                            <GradientStop Color="#FFF5EFEF" Offset="1" />
                        </LinearGradientBrush>
                    </TabItem.Background>
                    <Grid>
                        <TextBox Margin="6" Name="textBox2" Text="" AcceptsReturn="True" IsReadOnly="True" Background="#FFF5EFEF" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
                    </Grid>
                </TabItem>
            </TabControl>
        </Grid>
        <Canvas Name="drawingGrid" Height="568" Width="542" HorizontalAlignment="Right" Canvas.Left="408" Canvas.Top="12" Background="LightGray" ClipToBounds="True">
            <Canvas Name="turtleGrid" Height="50" Width="50" >
                <Image Name="turtle" Source="turtle.png" Height="50" Width="50" Canvas.Left="200" Canvas.Top="200"/>
            </Canvas>
        </Canvas>
    </Canvas>
</Window>
